package com.cinc.ebc.pp.workOrderProcess.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 生产工单加工明细
 * @Author: jeecg-boot
 * @Date: 2024-04-05
 * @Version: V1.0
 */
@Data
@ApiModel(value = "pp_work_order_process对象", description = "生产工单加工明细")
public class PpWorkOrderProcessReportModel {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 工单ID
     */
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String workOrderId;
    /**
     * 工艺路线ID
     */
    @Excel(name = "工艺路线ID", width = 15)
    @ApiModelProperty(value = "工艺路线ID")
    private String routeDetailId;
    /**工艺路线分类编号*/
    @Excel(name = "工艺路线分类编号", width = 15)
    @ApiModelProperty(value = "工艺路线分类编号")
    private java.lang.String routeClassNo;
    /**
     * 工序号
     */
    @Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private Integer seqNo;
    /**
     * 工序编号
     */
    @Excel(name = "工序编号", width = 15)
    @ApiModelProperty(value = "工序编号")
    private String processNo;
    /**
     * 工序名称
     */
    @Excel(name = "工序名称", width = 15)
    @ApiModelProperty(value = "工序名称")
    private String processName;
    /**
     * 工作中心
     */
    @Excel(name = "工作中心", width = 15, dictTable = "mdm_work_center", dicText = "name", dicCode = "id")
    @Dict(dictTable = "mdm_work_center", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "工作中心")
    private String workId;
    /**
     * 工序状态
     */
    @Excel(name = "工序状态", width = 15, dicCode = "pp_process_status")
    @Dict(dicCode = "pp_process_status")
    @ApiModelProperty(value = "工序状态")
    private String status;
    /**
     * 工单数量
     */
    @Excel(name = "工单数量", width = 15)
    @ApiModelProperty(value = "工单数量")
    private BigDecimal orderQty;
    /**
     * 可汇报数量
     */
    @Excel(name = "可汇报数量", width = 15)
    @ApiModelProperty(value = "可汇报数量")
    private BigDecimal unhandleQty;
    /**
     * 加工数量
     */
    @Excel(name = "加工数量", width = 15)
    @ApiModelProperty(value = "加工数量")
    private BigDecimal qty;
    /**
     * 合格数量
     */
    @Excel(name = "合格数量", width = 15)
    @ApiModelProperty(value = "合格数量")
    private BigDecimal checkQty;
    /**
     * 报废数量
     */
    @Excel(name = "报废数量", width = 15)
    @ApiModelProperty(value = "报废数量")
    private BigDecimal scrapQty;
    /**
     * 返修数量
     */
    @Excel(name = "返修数量", width = 15)
    @ApiModelProperty(value = "返修数量")
    private BigDecimal reworkQty;
    /**不合格数量*/
    @Excel(name = "不合格数量", width = 15)
    @ApiModelProperty(value = "不合格数量")
    private java.math.BigDecimal uncheckQty;
    /**接收数量*/
    @Excel(name = "接收数量", width = 15)
    @ApiModelProperty(value = "接收数量")
    private java.math.BigDecimal receiveQty;
    /**
     * 面积
     */
    @Excel(name = "面积", width = 15)
    @ApiModelProperty(value = "面积")
    private BigDecimal areaNum;
    /**
     * 重量
     */
    @Excel(name = "重量", width = 15)
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;
    /**
     * 计划开工期
     */
    @Excel(name = "计划开工期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划开工期")
    private Date planStartDate;
    /**
     * 实际开工期
     */
    @Excel(name = "实际开工期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "实际开工期")
    private Date actStartDate;
    /**
     * 计划完工期
     */
    @Excel(name = "计划完工期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划完工期")
    private Date planEndDate;
    /**
     * 实际完工期
     */
    @Excel(name = "实际完工期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "实际完工期")
    private Date actEndDate;
    /**
     * 标准工时
     */
    @Excel(name = "标准工时", width = 15)
    @ApiModelProperty(value = "标准工时")
    private BigDecimal standardTime;
    /**
     * 准备工时
     */
    @Excel(name = "准备工时", width = 15)
    @ApiModelProperty(value = "准备工时")
    private BigDecimal prepareTime;
    /**
     * 等待工时
     */
    @Excel(name = "等待工时", width = 15)
    @ApiModelProperty(value = "等待工时")
    private BigDecimal waitTime;
    /**
     * 工时单位
     */
    @Excel(name = "工时单位", width = 15, dicCode = "pp_process_time_unit")
    @Dict(dicCode = "pp_process_time_unit")
    @ApiModelProperty(value = "工时单位")
    private String timeUnit;
    /**
     * 租户ID
     */
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private String tenantId;

    /**工单号*/
    @Excel(name = "工单号", width = 15)
    @ApiModelProperty(value = "工单号")
    private java.lang.String orderNo;
    /**项目*/
    @Excel(name = "项目", width = 15, dictTable = "crm_project", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "crm_project", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private java.lang.String projectId;

    /**物料ID*/
    @Excel(name = "物料ID", width = 15)
    @ApiModelProperty(value = "物料ID")
    private java.lang.String materialId;
    /**物料编号*/
    @Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private java.lang.String materialNo;
    /**物料描述*/
    @Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private java.lang.String materialDesc;
    /**单位*/
    @Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private java.lang.String unit;
}
